Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: Service hours chart #885

Merged
merged 16 commits into from
Dec 6, 2023
Merged

feature: Service hours chart #885

merged 16 commits into from
Dec 6, 2023

Conversation

idreyn
Copy link
Contributor

@idreyn idreyn commented Oct 30, 2023

Motivation

We want to graph the total number of (scheduled and delivered) service hours for Red, Orange, and Blue lines. This is a complementary metric to trip counts, which also happens to be more robust to shuttling.

Changes

Adds a new graph to /<line>/service:

image

For now weekly/monthly aggregation is done on-the-fly instead of using agg tables, so large queries (2+ years) sometimes fail. There's also no reliable data before about 2018.

Also: I'm using <TimeSeriesChart> for the first time here! It powers this chart and now the scheduled/delivered trips chart, too.

Testing Instructions

Visit the Service pages for Red, Orange, Blue and confirm that this graph loads and renders correctly.

@github-actions github-actions bot added backend Change to backend code frontend Change to frontend code labels Oct 30, 2023
tsconfig.json Outdated
@@ -24,6 +24,6 @@
}
]
},
"include": ["next-env.d.ts", "globals.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"include": ["next-env.d.ts", "globals.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", "common/components/charts/TimeSeriesChart"],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can I ask why? I would expect this would already be covered by "**/*.ts", "**/*.tsx"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very strange. I did not make this change manually, some tool might have done it

@nathan-weinberg nathan-weinberg removed their request for review November 16, 2023 19:13
@idreyn idreyn merged commit 6a9b291 into main Dec 6, 2023
5 checks passed
@idreyn idreyn deleted the idr/service-hours branch December 6, 2023 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Change to backend code frontend Change to frontend code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants